package com.cola;

/**
 * @Grup:com.cola
 * @Auther:cola
 * @Data:2021/4/9-2021-04-12:26
 * @version:1.0 定义一个枚举类
 */
public enum Color implements Info {
    RED(10), GREEN(20), BLUE;
    private int color;

    private Color() {
        System.out.println("无参构造!");
    }

    Color(int color) {
        this.color = color;
        System.out.println("有参构造!");
    }

    @Override
    public int getColor() {

        return color;
    }
}
